package annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @author jiang
 */
@Documented
@Target({ElementType.PARAMETER, ElementType.FIELD})
@Inherited
@Retention(RetentionPolicy.RUNTIME)
public @interface ConfigValue {

    String mark() default "Config";

    @AliasFor("value")
    String key() default "";

    @AliasFor("key")
    String value() default "";

    Class<?> clazz() default String.class;
}
